#!/usr/bin/env bash
# curl-impersonate with the profile chosen at runtime via $CURL_IMP.
# Used to sweep TLS/H2 fingerprints against a live target: the browser/curl challenge split was
# proven to be decided on the wire, and the profile is the only part of the wire we can swap.
# NOTE --impersonate sets its headers as INTERNAL defaults, so -H REPLACES them (unlike the
# explicit -H wrappers, where -H appends and you end up sending both values).
dir=${0%/*}
exec "$dir/curl-impersonate" --compressed --impersonate "${CURL_IMP:-chrome146}" "$@"
